<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>视频解析神器</title>
    <link
      rel="stylesheet"
      href="https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css"
    />
    <script
      type="module"
      crossorigin
      src="https://yi.sd.cn//assets/index-CmVXsg2X.js"
    ></script>
    <link
      rel="stylesheet"
      crossorigin
      href="https://yi.sd.cn/assets/index-B-BsRNza.css"
    />
    <style>
      body {
        margin: 0;
        padding: 20px;
        font-family: Arial, sans-serif;
        background-color: #f0f2f5;
        transition: background-color 0.3s ease;
      }
      .container {
        max-width: 800px;
        margin: 0 auto;
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      }
      .header {
        text-align: center;
        margin-bottom: 20px;
      }

      .header h1 {
        color: #1a73e8;
        margin-bottom: 5px;
      }

      .header p {
        color: #666;
        font-size: 0.9em;
      }

      .button-group {
        display: flex;
        gap: 10px;
        margin: 20px 0;
      }

      .button {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        background-color: #1a73e8;
        color: white;
        transition: background-color 0.3s ease;
      }

      .button:hover {
        background-color: #1557b0;
      }

      .platforms {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        margin-top: 20px;
      }

      .platform {
        background-color: white;
        padding: 10px;
        border-radius: 4px;
        text-align: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      }

      .platform img {
        max-width: 80px;
        height: auto;
        margin-bottom: 5px;
      }

      .card {
        width: 300px;
        padding: 20px;
        text-align: center;
        cursor: pointer;
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        background-color: #fff;
        transition: background-color 0.3s ease, color 0.3s ease;
      }

      .dark-theme {
        background-color: #1a1a1a;
        color: white;
      }
      .day-text,
      .time-text,
      .theme-text,
      .day-text2 {
        margin: 8px 0;
      }

      .dark-theme .container {
        background: #2c2c2c;
        color: white;
      }

      .dark-theme .button {
        background-color: #4285f4;
      }

      .dark-theme .platform {
        background-color: #333;
      }

      .dark-theme .card {
        background-color: #333;
      }

      .video-container {
        /* 边距 10px */
        margin: 10px;
      }

      .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header">
        <h1>星辰视频解析</h1>
      </div>

      <div class="card" onclick="changeTheme()">
        <p class="day-text">正在获取日期...</p>
        <p class="time-text">正在获取时间...</p>
        <span class="theme-text">当前主题：日间</span>
        <p class="day-text2">
          <span>点击卡片可更换主题</span>
        </p>
      </div>

      <div data-v-ffe83e32="" class="parse">
        <div data-v-ffe83e32="" class="select-api">
          <select id="interfaceSelect" class="button">
            <option value="http://47.109.79.9:8899/?url=" selected>
              测试接口
            </option>
            <option value="https://mbof.688119.xyz/?url=" selected>
              测试接口2
            </option>
            <option value="https://www.zab09.vip/?url=" selected>
              测试接口
            </option>
            <!-- 可添加更多接口选项 -->
          </select>
        </div>

        <div data-v-ffe83e32="" class="input-url">
          <span
            data-v-ffe83e32=""
            class="arco-input-wrapper"
            style="border-radius: var(--fillet)"
            ><span class="arco-input-prefix"
              ><img
                data-v-ffe83e32=""
                src="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713266123097'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5617'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M514.2%20659.1c-44.8%2042.1-84.6%2085-127.6%20126.7-46.3%2045.6-120.6%2045.6-167%200-22.7-23-34.9-54.3-33.7-86.6%201.2-32.3%2015.6-62.6%2039.9-83.9%2041.6-42.5%2084.2-83.7%20125.8-125.8%2010.5-7.1%2017.1-18.6%2018.1-31.3%201-12.6-3.9-25-13.2-33.6-9-8.2-21-12.4-33.2-11.5-12.2%200.8-23.5%206.6-31.3%2016-44.8%2044.8-89.5%2086.8-131.2%20131.2-46.9%2047.1-67.7%20114.2-55.9%20179.6%2011.9%2065.4%2055%20120.9%20115.4%20148.5%2069.8%2034.8%20153.8%2022.6%20210.8-30.4%2050.6-44.8%2097.1-94%20143.7-142.8%208.9-11.1%2012.8-25.3%2010.7-39.4-3.4-15.3-15.3-27.3-30.6-30.9-15-3.7-30.9%201.9-40.7%2014.2zM873.2%20240.1c-28.2-71.4-96.5-119-173.2-120.9-47.3-4.1-94.3%2010-131.6%2039.4-53.7%2048.3-104.3%2099.8-154.4%20151.7a39.953%2039.953%200%200%200-7.5%2042c5.8%2014.3%2019.4%2023.9%2034.8%2024.7%2014.2-0.5%2027.8-6.2%2038-16.1%2044.8-44.8%2089.5-89.5%20134.3-130.7%2027.2-25.4%2066-34.3%20101.6-23.3%2041.2%2010%2073.6%2041.6%2084.8%2082.4%2011.2%2040.9-0.7%2084.6-31.1%20114.1L637.8%20534.6c-18.6%2015.9-21%2043.8-5.4%2062.7%2018.6%2018.3%2048.5%2018.3%2067.1%200%2044.8-44.8%2089.5-86.8%20134.3-134.3%2059.2-58.4%2075-147.8%2039.4-222.9z'%20fill='%231454E7'%20p-id='5618'%20data-spm-anchor-id='a313x.search_index.0.i4.285d3a81E7MlnF'%20class='selected'%3e%3c/path%3e%3cpath%20d='M338.3%20668c8%208.6%2019.2%2013.5%2030.9%2013.5s22.9-4.9%2030.9-13.5c86.2-85.9%20172-172.2%20257.4-258.7%205.5-7%209.9-14.9%2013-23.3%201.6-19-9-37-26.4-44.8-16.9-7.7-36.9-3.1-48.8%2011.2L340.5%20607.2c-9%207.4-14.4%2018.3-14.8%2029.9-0.4%2011.6%204.2%2022.9%2012.6%2030.9z'%20fill='%231454E7'%20p-id='5619'%20data-spm-anchor-id='a313x.search_index.0.i5.285d3a81E7MlnF'%20class='selected'%3e%3c/path%3e%3c/svg%3e"
                width="20px" /></span
            ><input
              class="arco-input arco-input-size-large"
              type="text"
              id="videoUrl"
              placeholder="输入视频链接,点击解析播放"
            /><!----><!----></span
          >
        </div>
        <div data-v-ffe83e32="" class="button-play">
          <button
            data-v-ffe83e32=""
            class="arco-btn arco-btn-primary arco-btn-shape-square arco-btn-size-large arco-btn-status-normal arco-btn-long"
            type="button"
            onclick="parseVideo()"
            style="border-radius: var(--fillet)"
          >
            解析播放
          </button>
        </div>
      </div>

      <!-- 播放器组件 -->
      <div data-v-ffe83e32="" class="player video-container">
        <div data-v-ffe83e32="" class="loader">
          <div data-v-a9d66c48="" data-v-ffe83e32="" class="bg">
            <div class="ui-abstergo" data-v-a9d66c48="">
              <img
                src="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713394912880'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10127'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M464%20496H272c-17.6%200-32-14.4-32-32s14.4-32%2032-32h192c17.6%200%2032%2014.4%2032%2032s-14.4%2032-32%2032z%20m-96%20224c-17.6%200-32-14.4-32-32V464c0-17.6%2014.4-32%2032-32s32%2014.4%2032%2032v224c0%2017.6-14.4%2032-32%2032z%20m288%200c-12.8%200-24-8-28.8-19.2l-96-224c-6.4-16%200-35.2%2016-41.6%2016-6.4%2035.2%200%2041.6%2017.6L656%20608l67.2-155.2c6.4-16%2025.6-24%2041.6-17.6%2016%206.4%2024%2025.6%2016%2041.6l-96%20224C680%20712%20668.8%20720%20656%20720z%20m192%20208H176c-52.8%200-96-43.2-96-96V320c0-52.8%2043.2-96%2096-96h672c52.8%200%2096%2043.2%2096%2096v512c0%2052.8-43.2%2096-96%2096zM176%20288c-17.6%200-32%2014.4-32%2032v512c0%2017.6%2014.4%2032%2032%2032h672c17.6%200%2032-14.4%2032-32V320c0-17.6-14.4-32-32-32H176z%20m272%200c-8%200-16-3.2-22.4-9.6l-160-160c-12.8-12.8-12.8-32%200-44.8%2012.8-12.8%2032-12.8%2044.8%200l160%20160c12.8%2012.8%2012.8%2032%200%2044.8-6.4%206.4-14.4%209.6-22.4%209.6z%20m128%200c-8%200-16-3.2-22.4-9.6-12.8-12.8-12.8-32%200-44.8l160-160c12.8-12.8%2032-12.8%2044.8%200%2012.8%2012.8%2012.8%2032%200%2044.8l-160%20160C592%20284.8%20584%20288%20576%20288z'%20fill='%23ffffff'%20p-id='10128'%3e%3c/path%3e%3c/svg%3e"
                width="60"
                data-v-a9d66c48=""
              />
              <div class="ui-text" data-v-a9d66c48="">
                今天看点啥
                <div class="ui-dot" data-v-a9d66c48=""></div>
                <div class="ui-dot" data-v-a9d66c48=""></div>
                <div class="ui-dot" data-v-a9d66c48=""></div>
              </div>
            </div>
          </div>
        </div>
        <iframe
          data-v-ffe83e32=""
          width="100%"
          height="100%"
          allowtransparency="true"
          id="videoFrame"
          frameborder="0"
          allowfullscreen=""
        ></iframe>
      </div>

      <div class="footer" style="text-align: center">
        <p>本工具仅供学习研究，版权归原作者所有</p>
      </div>
    </div>
    <script>
      function changeTheme() {
        const body = document.body;
        body.classList.toggle("dark-theme");
        if (card.classList.contains("dark-theme")) {
          card.classList.remove("dark-theme");
          themeText.textContent = "当前主题：日间";
        } else {
          card.classList.add("dark-theme");
          themeText.textContent = "当前主题：夜间";
        }
      }

      function parseVideo() {
        const interfaceUrl = document.getElementById("interfaceSelect").value;
        const videoUrl = document.getElementById("videoUrl").value;

        if (videoUrl) {
          const encodedUrl = encodeURIComponent(videoUrl);
          const fullUrl = `${interfaceUrl}${encodedUrl}`;
          document.getElementById("videoFrame").src = fullUrl;
        }
      }

      const dayText = document.querySelector(".day-text");
      const timeText = document.querySelector(".time-text");
      const themeText = document.querySelector(".theme-text");
      const card = document.querySelector(".card");

      // 更新时间函数
      function updateTime() {
        const now = new Date();
        const year = now.getFullYear();
        const month = String(now.getMonth() + 1).padStart(2, "0");
        const day = String(now.getDate()).padStart(2, "0");
        const hours = String(now.getHours()).padStart(2, "0");
        const minutes = String(now.getMinutes()).padStart(2, "0");
        const seconds = String(now.getSeconds()).padStart(2, "0");

        // 更新日期显示
        dayText.textContent = `${year} 年 ${month} 月 ${day} 日`;
        // 更新时间显示
        timeText.textContent = `${hours}:${minutes}:${seconds}`;
      }

      // 每秒更新一次时间
      setInterval(updateTime, 1000);
      // 页面加载时先更新一次时间
      updateTime();
    </script>
  </body>
</html>
